package com.hdu.async_initialize_bean.selector;

import com.hdu.async_initialize_bean.registrar.AsyncInitBaseBeanDefinitionRegistrar;
import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.Ordered;
import org.springframework.core.type.AnnotationMetadata;

public class AsyncInitConfigurationSelector implements DeferredImportSelector, Ordered {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{AsyncInitBaseBeanDefinitionRegistrar.class.getName()};
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
